import { post } from "@/utils/request";

export const login = <T>(data?: {}, params?: {}) => {
  return post<T>("/api/login", data, params);
};

export const logout = <T>(data?: {}, params?: {}) => {
  return post<T>("/api/logout", data, params);
};